const filterNoteTags = (content) =>
  content.match(/#(.*?)\s/gu)?.map((o) => o.replaceAll('#', '').trim())

export const stringToBase64 = (str) => window.btoa(unescape(encodeURIComponent(str)))

export const base64ToString = (base64Str) => decodeURIComponent(escape(window.atob(base64Str)))

export { filterNoteTags }
